//
//  ViewController.h
//  VideoVerbDemo
//
//  Created by hodor on 2019/8/15.
//  Copyright © 2019 王松锋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@class VideoEditBottomView,EditFrameView;

typedef NS_ENUM(NSInteger,PlayerStatus){
    PlayerStatusPause,               // 结束或暂停
    PlayerStatusPlaying,             // 播放中
    PlayerStatusPlayingBeforeSeek    // 拖动之前是播放状态
};


@interface ViewController : UIViewController

@property(nonatomic,assign)CGSize videoSize;
@property(nonatomic,assign)CGSize endImageSize;
@property (nonatomic, assign) PlayerStatus playerStatus;
@end




@interface VideoEditBottomView : UIView
@property (assign, nonatomic) CGFloat itemHeight;
@property (assign, nonatomic) CGFloat itemWidth;
@property (assign, nonatomic) CGFloat validRectX;
@property (strong, nonatomic) UICollectionView *collectionView;
@property (strong, nonatomic) UICollectionViewFlowLayout *flowLayout;
@property (assign, nonatomic) CGFloat contentWidth;
@property(nonatomic,assign)CGSize endImageSize;
@property (strong, nonatomic) AVAsset *avAsset;
@property (assign, nonatomic) CGFloat interval;

@property (strong, nonatomic) EditFrameView *editView;

@end




@interface HXVideoEditBottomViewCell : UICollectionViewCell
@property (strong, nonatomic) UIImageView *imageView;
@end



@interface EditFrameView : UIView
@property (assign, nonatomic) CGFloat itemHeight;
@property (assign, nonatomic) CGFloat itemWidth;
@property (assign, nonatomic) CGFloat validRectX;
@property (nonatomic, assign) CGRect validRect;
@property (assign, nonatomic) CGFloat contentWidth;
@property (assign, nonatomic) NSTimeInterval videoTime;
@end
